/*import javax.microedition.midlet.*;

/**
 * This is for debug/test only
 * @author hanyzh
 */
/*public class TestMidlet extends MIDlet implements IMainGame {

    private BlueToothManager d;

    public void startApp() {

        runServer();
        //runClient();

    }

    private void runServer() {
        //To create a bluetooth server, run this
        BlueToothManager d = new BlueToothManager(this, true);
        //And then, you can run sendMsg method to send a message
        //Remember, the msg will only be sent if connection between server and client established.
        d.sendMsg(" from server".getBytes());

    }

    private void runClient() {
        //To create a bluetooth client, run this
        BlueToothManager d = new BlueToothManager(this, false);
        d.sendMsg(" from client".getBytes());
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }

    public void msgProcessor(byte[] msg, int length) {
        System.out.println("IMainGame::msgProcessor()==========================================================");
        System.err.println("RECEIVED:" + new String(msg));
    }

    public void btInitComplete(boolean isBlueToothReady) {
        System.out.println("IMainGame::btInitComplete()==========================================================");
        if (isBlueToothReady == false) {
            d.setIsGameOver(true);
        }
    }
}*/
